<%-- 
    Document   : main
    Created on : 2017-2-22, 21:05:05
    Author     : DELL
--%>
<%@page import="java.awt.Frame"%>
<%@page import="loginRegister.LoginBean"%>
<%@page import="java.util.ArrayList" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>个人信息管理——主界面</title>
    </head>

        <% 
            String userName=null;
            ArrayList login=(ArrayList)session.getAttribute("login");
            if(login==null||login.size()==0){
            
                response.sendRedirect("http://localhost:8081/PersonInforMSys/login.jsp");
            } else {
                    for (int i=login.size()-1;i>=0;i-- ) {
                        LoginBean nn=(LoginBean)login.get(i);
                        userName=nn.getUserName();
}         }   
           
        %>

    <FRAMESET cols="20%,*" framespacing="0" border="no" frameborder="no"  >
        <frame src="../main/left.jsp" name="left" scrolling="no" >
            <frameset rows="20%,10%,*" framespacing="0" border="no" frameborder="no"  >
                <frame src="../main/top.jsp" name="top" scrolling="no">
                    <frame src="../main/middle.jsp?userName=<%=userName%>" name="middle" scrolling="no">
                        <frame src="../main/bottom.jsp" name="main" scrolling="no">
            </frameset>
     </FRAMESET>
        
</html>
